package windows;



import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import coordinators.Cordinator;

public class ManageOrder extends JFrame 
{
	Cordinator coordinador;
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private ManageOrderCreate gestionarPedidoCrear;
	private ManageOrderModify gestionarPedidoModificar;
	private ManageOrderDelete gestionarPedidoEliminar;
	private ManageOrderShow gestionarPedidoMostrar;

	private JTabbedPane paneles;
	

	public ManageOrder(WindowPrincipal superior)
	{
		super();
		setLayout(null);
		setSize(500,600);

	
		paneles=new JTabbedPane();

		paneles.setBounds(0,0,getWidth(),getHeight());

		gestionarPedidoCrear=new ManageOrderCreate();
		gestionarPedidoCrear.setBounds(0,0,getWidth(),getHeight());
		gestionarPedidoCrear.setPreferredSize(gestionarPedidoCrear.getSize());

		gestionarPedidoModificar =new ManageOrderModify();
		gestionarPedidoModificar .setBounds(0,0,getWidth(),getHeight());

		gestionarPedidoEliminar=new ManageOrderDelete();
		gestionarPedidoEliminar.setBounds(0,0,getWidth(),getHeight());

		gestionarPedidoMostrar=new ManageOrderShow();
		gestionarPedidoMostrar.setBounds(0,0,getWidth(),getHeight());

		paneles.addTab("Crear Pedido",gestionarPedidoCrear);
		paneles.addTab("Modificar Pedido", gestionarPedidoModificar);
		paneles.addTab("Eliminar Pedido", gestionarPedidoEliminar);
		paneles.addTab("Mostrar Pedido", gestionarPedidoMostrar);

		getContentPane().add(paneles);
		setTitle("Gestionar Pedido");
		setLocation(250, 100);


		setResizable(false);
	}

	public void setCoordinador(Cordinator c)
	{
		coordinador = c;
	}

	
}
